package com.shenjun.service;

import com.shenjun.mapper.UserMapper;
import com.shenjun.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User queryOrderById(Long orderId) {
        // 1.查询订单
        User order = userMapper.findById(orderId);
        return order;
    }

}
